package com.zzxy.spring5.service.impl;

import com.zzxy.spring5.dao.IAccountDao;

public class AccountServiceImpl implements IAccountService{
    private IAccountDao accountDao;

    public IAccountDao getAccountDao() {
        return accountDao;
    }

    public void setAccountDao(IAccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public void transer(String outer, String inner, int money) {
        accountDao.out(outer,money);
        //int i = 1/0;
        accountDao.out(inner,money);

    }
}
